Dynomotion

Group: DynoMotion Message: 11825 From: Toby Rule Date: 6/29/2015
Subject: Adding commands to coordinated motion buffer
Hi Tom,

Is it possible to add segments to the coordinated motion buffer while the g-code program is executing?  There are two instances where I would like to do this:

1) In one case, a user runs a program which contains an m-code command - say m106.  This command calls back to the PC (KMotion_dotNet.MCODE_TYPE.M_Action_Callback)  which loads a record from a database that is used to configure another serial device, but the record also includes information that is used to make an adjustment to the z-axis position.  However, when the z-axis is set up for coordinated motion, it is normally not possible to change it's position while g-code is running.  Is there a way to inject a coordinated motion command into the buffer to do this?

2) In the above case it is also desired to make an adjustment to the feed rate.   However, once the g-code program is started, the only way to change the current feed rate is to change the feed rate override (not an option in this case) or else have an F-command in g-code.  Is it possible to inject an F-command into the g-code interpreter while a g-code program is running (but waiting for a PC callback to return)?  

Thanks!

Toby



The information contained in this transmission is intended only for the person or entity
to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive
material. If you are not the intended recipient, please contact the sender immediately
and destroy the material in its entirety, whether electronic or hard copy. You are
notified that any review, retransmission, copying, disclosure, dissemination or other
use of, or taking of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited.
Group: DynoMotion Message: 11830 From: Tom Kerekes Date: 6/30/2015
Subject: Re: Adding commands to coordinated motion buffer
Hi Toby,

I'm not sure why you describe this as adding segments to the coordinated motion.  It isn't clear whether you need to physically move Z or just change an offset to be used for subsequent GCode.  But all coordinated motion will be terminated before the M code will call your program.  So you are free to move Z if you wish.  Or you might set an Origin Offset.

Regarding Feed Rate changes.  I don't see a way to do that from .NET as the Interpreter feed_rate setting is not currently assessable from .NET.  We could export it.

Regards
TK